  <?php
// 本文档自动生成，仅供测试运行
class RegisterAction extends Action
{
    /**
    +----------------------------------------------------------
    * 显示注册页
    +----------------------------------------------------------
    */
    public function register()
    {
        $stu=M("student");
        $stu->create();
        $stu_result=$stu->add();
        if($stu_result)
        {
            $this->assign("jumpUrl","__APP__/Index/index");
            $this->success("注册成功");
        }
        else
        {
              $this->display();
        }
    }

    /**
    +----------------------------------------------------------
    * 探针模式
    +----------------------------------------------------------
    */


}
?>